from openai import OpenAI
import os


def get_response():
    client = OpenAI(
        api_key="sk-kp9S9IWRGNPpUUdsasadbkFJr0HFcuWhifs9bNe0IWsT",
        base_url="https://ffflichun-goldptarmigan.web.val.run/v1"
    )

    response = client.images.generate(
        model="dall-e-3",
        prompt="a white siamese cat",
        size="1024x1024",
        quality="standard",
        n=1,
    )

    print(response)

    image_url = response.data[0].url
    print(image_url)


if __name__=='__main__':
    get_response()
